package com.caipin.domain.camera;

import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.util.List;

/**
 * @Author: zhunian0322@163.com
 * @DateTime: 2020-08-02 10:05
 * @Description: TODO
 */
@NoArgsConstructor
@Data
@Accessors(chain = true)
public class StudentPhotoInfos {

    /**
     * grade : 年级
     * classroomId : 教室ID
     * infos : [{"studentId":"学生ID","img":{"format":"jpeg","base64":"图片STR"}}]
     */

    private String grade;
    private String classroomId;
    private List<InfosBean> infos;

    @NoArgsConstructor
    @Data
    public static class InfosBean {
        /**
         * studentId : 学生ID
         * img : {"format":"jpeg","base64":"图片STR"}
         */

        private String studentId;
        private ImgBean img;

        @NoArgsConstructor
        @Data
        @Accessors(chain = true)
        public static class ImgBean {
            /**
             * format : jpeg
             * base64 : 图片STR
             */

            private String format;
            private String base64;
        }
    }
}
